<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="container-fluid">
    <div class="row">

        <div class="col-md-8 col-md-offset-2">
            <form class="form-horizontal" action="" method="post" novalidate>
                {% csrf_token %}
                  {% for field in book_form_obj %}
                    <div class="form-group">
                        <label for="{{ field.id_for_label }}" class="col-sm-2 control-label">{{ field.label }}</label>
                        <div class="col-sm-6">{{ field }}</div>
                        <div class="col-sm-2"><span class="text-danger">{{ field.errors.0 }}</span></div>
                    </div>
                {% endfor %}
                <button class="btn btn-success">提交</button>
            </form>
        </div>

    </div>

    </div>
</body>
</html>